package net.dodoman;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

public class MyMap {
	public static void main(String args[]) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("ak", "av");
		map.put("bk", "bv");
		map.put("ck", "cv");
		Iterator<Entry<String, String>> it = map.entrySet().iterator();
		for (int i = 0; i < map.size(); i++) {
			Entry<String, String> en = (Entry<String, String>) it.next();
			String key = en.getKey();
			String value = en.getValue();
			System.out.println(key);
			System.out.println(value);
		}
	}

	/**
	 * 
	 * @param str1
	 *            第一个字符串
	 * @param str2
	 *            第二个字符串
	 * @return 返回连接后的字符串
	 */
	private String joinS(String str1, String str2) {
		return str1 + str2;
	}
}
